/*  
 *  Copyright 2006 Paul Jack.
 *
 *  This file is part of the Dex compiler suite. 
 *  
 *  Dex is free software; you can redistribute it and/or modify it
 *  under the terms of the GNU General Public License as published by the
 *  Free Software Foundation; either version 2 of the License, or (at your
 *  option) any later version.
 *  
 *  Dex is distributed in the hope that it will be useful, but
 *  WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
 *  Public License for more details.
 *  
 *  You should have received a copy of the GNU General Public License along
 *  with this program; if not, write to the Free Software Foundation, Inc.,
 *  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
 */
package dex.compiler.checker;

import dex.compiler.problem.Crime;
import dex.compiler.problem.Omission;


/**
 * Potential problems with definitions. 
 */
public class DefinitionProblems {

	final public static Crime BAD_CLASS_NAME =
	 new Crime("Class names may not be qualified: ");

	final public static Crime BAD_VARIABLE_NAME = 
	 new Crime("Parameter names may not be qualified: ");

	final public static Crime BAD_FUNCTION_NAME =
	 new Crime("Function names may not be qualified: ");

	final public static Crime BAD_RECORD_NAME =
	 new Crime("Record names may not be qualified: ");

	final public static Crime BAD_MACRO = 
	 new Crime("Macros must be executed before semantic analysis.");
	
	final public static Crime VARIABLE_DUPE = 
	 new Crime("Duplicate variable: ");
	
	final public static Crime RECORD_DUPE = 
	 new Crime("Duplicate user type: ");
	
	final public static Crime CLASS_DUPE =
	 new Crime("Duplicate user type: ");
	
	final public static Crime FUNCTION_DUPE =
	 new Crime("Duplicate function: ");
	
	final public static Omission MISSING_IMPORT = 
	 new Omission("Imported unit does not exist: ");

	final public static Crime NO_RETURN = 
	 new Crime("Function must return a value: ");
}
